<?php
namespace app\api\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class ViperType extends Validate
{
    //定义验证规则
    protected $rule = [
        'name'  => 'require',
        'expire_month'  => 'require',
        'is_across_store_recharge'  => 'require',
        'is_across_store_give'=>'require',
        'is_discount'  => 'require',
    ];
    //定义验证提示
    protected $message = [
        'name.require' => '请输入名称',
        'expire_month.require' => '请输入有效期',
        'is_across_store_recharge.require' => '请选择跨店充值',
        'is_across_store_give.require' => '请选择跨店赠送',
        'is_discount.require' => '请选择余额不足是否可打折',
    ];

}
